home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / System Utilities / Startup Font Manager 1.1.0 / SFM 1.1.0 Docs next >
Encoding:
Text File  |  1992-10-25  |  12.1 KB  |  176 lines  |  [TEXT/Rich]

  1. (Even if you've been playing the home game all along, re-read the docs.)
  2.  
  3. Startup Font Manager 1.1.0
  4.  
  5. "What the hail is that?"
  6.  
  7. Startup Font Manager is a System 7.1-ONLY extension designed to give people the ability to
  8. enable/disable fonts at startup. It accomplishes this by moving fonts to/from the Fonts folder
  9. (inside the System Folder) from/to a (newly created) "•Disabled Fonts" folder inside the "Fonts"
  10. folder. Doing this effectively hides fonts from the System, which doesn't install them at startup.
  11. Fonts which are hidden from the System this way are not "installed"; that is, they do not show up in
  12. Font menus and such.
  13.  
  14. Here's how we play: at boot, my little animated icon comes up, you see it, gasp in awe and SFM looks
  15. to see if you're holding down the Space Bar or the "F" (for "Fonts") key. If you are holding down
  16. one of those keys, (and you running at least System 7.1) SFM grabs a list of all font files, font
  17. suitcases and PostScript font files and displays them in a dialog for you to examine. All fonts
  18. which are currently 'installed' (that is, they are located in the System Folder's "Fonts" folder,
  19. where the System will find them soon hereafter and make them available to applications run on your
  20. Mac) are highlighted. Fonts which are not installed (that is, they are located in a subfolder of the
  21. "Fonts" folder named "•Disabled Fonts", which I create for you, where they aren't found by the
  22. System) are un-highlighted. All installed fonts are grouped together and alphabetized; next come the
  23. uninstalled. Using the 'standard' selection method where the shift key allows for contiguous
  24. selections and the command key allows for non-contiguous selections, you "enable" (highlight) and
  25. disable (un-highlight) the fonts listed. Disabling the PostScript font file associated with a
  26. bitmapped font which is still enabled is allowed; it's not such a good idea, but it's allowed. When
  27. you're done, click OK. If you want to see the "About" screen, click the icon of SFM with a help
  28. balloon.
  29.  
  30. "Why the hail do it?"
  31.  
  32. I wrote this as a test for myself. I'm one of those nasty geeks who suddenly decides he wants to do
  33. 'real programming' and deserves to wreak havoc on the entire planet. I wrote this to learn how to
  34. write extensions, use the List Manager and crash fellow Mac users' CPUs. My real intent is to write
  35. something somewhat-but-not-completely-unlike a combination of Suitcase and Extensions Manager (I
  36. happen to think Extensions Manager is very slick and elegant...no, it's not a fine piece of art like
  37. "Wings of Desire" or even "Ren & Stimpy", but it gets the job done very nicely, thank you); I wanted
  38. a font 'mover' that didn't involve patching. In other words (for the novices out there), I wanted to
  39. install and deinstall fonts without 'patching any traps'; patching traps is the usual cause of INIT
  40. conflicts and such problems...(actually, bad programming is the usual culprit). SFM, therefore, only
  41. climbs into memory if you hold down one of the activation keys at boot (and only if you're running
  42. the right System version); after it has allowed you to re/move fonts, it gets out of memory, never
  43. to appear again and never to cause problems (please, god, don't let it cause problems).
  44.  
  45. "Why the hail release it?"
  46.  
  47. I know that as of September 1, System 7 has only gone Golden Master (or so I'm told) and you won't
  48. be able to use SFM until it's available a few weeks from now (October 19). Nonetheless, the
  49. privileged few who have System 7.1 already, this will be useful. For the rest of us, we can wait. No
  50. problem, Apple. We're USED to waiting. WE DON'T MIND. ;)
  51.  
  52. "How the hail did ya' write it?"
  53.  
  54. Believe it or not, I wrote this under System 7.0.1, then copied it to a friend's Mac (which was
  55. running System 7.1), who told me that (double believe it or not) it worked. (Actually, only one call
  56. in this extension is System 7.1-explicit...it's the call to "FindFolder" asking for the location of
  57. the 'font' folder. Were it not for this call, and the security calls I place around it to restrict
  58. people from using it unless they are running System 7.1, this would actually work under System 7.0.
  59. Of course, moving fonts in and out of a ":System Folder:Fonts:" would accomplish absolutely
  60. nothing...)
  61.  
  62. "What the hail could you possibly add to make this even more cool?"
  63.  
  64. Oh, well, thanks for the praise but there's plenty to add. How about:
  65.  
  66. • Make SFM a Control Panel device. Don't bother writing me requesting this…EVERYONE has requested
  67. this…Demigods have written me to ask for this. Small rodent-like forest creatures have written to
  68. ask for this. DON'T WRITE ME TO ASK FOR THIS. ;) It's not the #1 item on my personal list but it
  69. will be done eventually. ppphhht.
  70.  
  71. • Font sets. That's another item on the list I'll get to soon.
  72.  
  73. • The way the list selection works is goofy (at apple.com?). Part of me feels it ought to work like
  74. Extensions Manager, where all selections are toggled. In other words, if you click on something, it
  75. changes from selected to deselected, or vice versa. As it stands now, the shift and command key
  76. allow multiple selections (any application which allows for large, non-contiguous selections uses
  77. the same technique as I use here; it's built into the Mac). While this is perfectly appropriate for
  78. some types of list selectons, I don't think it works here. I don't really know...for a selection of
  79. LOTS of fonts, it would be awfully convenient to have the list work like it does now. For a small
  80. selection, having to hold down the Command key while clicking is an added step. What do you think?
  81. Additionally, I need to write a custom LDEF so the list display is more fluid, takes less time and
  82. has better indication of PostScript files (bold is OK but a SICN would be more cool).
  83.  
  84. • Bitmapped fonts and PostScript fonts should be managed better. Maybe disabling a bitmap font
  85. should also move its associated PostScript font(s) to the appropriate place. This might make things
  86. kind of slow since I have to dig into the PostScript font file but it shouldn't be too bad...You
  87. might think there's no reason to bother moving PostScript fonts out of the Fonts folder (leaving
  88. them there is no problem) but the feature mentioned next will require your seeing PostScript fonts.
  89.  
  90. • Cool feature idea: If I find an alias in the "•Disabled Fonts" folder, I resolve it. That way, I
  91. could rename this extension "AppleShove" (or whatever) so it loads after AppleShare. Then, when I
  92. resolve any aliases found in the "Fonts" folder, I might resolve a network-based Fonts folder. This
  93. would give Systems Administrators (that's me!) the ability to create a network-based fonts folder
  94. to/from which people could copy/move their favorite fonts. There's a lot to consider here, but it
  95. could be cool...This does bring into light nasty things like, "Should the user's selection of a font
  96. located on a remote volume MOVE that font to their disk, thereby making sure no licenses are broken
  97. or should it COPY the font? And if it copies the font and the user later deselects that font, should
  98. it be deleted (since it came from a remote volume) or moved into the local '•Disabled Fonts'
  99. folder?" NOTE: As of SFM 1.1.0, the code for this feature is inside SFM! But I've completely
  100. disabled it. WRITE ME WITH YOUR SUGGESTIONS FOR THIS FEATURE.
  101.  
  102. Anyway, take a look or take a second to think about it...if you could write a font mover which
  103. didn't risk causing problems (and, to be fair, didn't let you change things once you booted), what
  104. would you want from it?
  105.  
  106. To whom may I give this?
  107.  
  108. Here's the boring, legal poop: Startup Font Manager is Copyrighted 1992 by Robert Hess. ONLY
  109. non-profit or charitable organizations, groups, companies or individuals may redistribute SFM
  110. without the expressed written consent of the author with the following exceptions: CompuServe,
  111. AppleLink, America Online, GEnie, The Well, CONNECT, SUMEX and its shadows. A charge or fee cannot
  112. be applied to the redistribution of SFM by any party EXCEPT by non-profit or charitable
  113. organizations, which may charge a small fee to cover media and associated costs. SFM may only be
  114. distributed UNMODIFIED and WITH DOCUMENTATION.
  115.  
  116. Whew...I hate that stuff, too, but we can't let EduCorp keep stepping on developers...
  117.  
  118.  Many thanks to: Ken Mcleod and Tom Conrad for guidance, moral support and HyperCorrosive™ email.
  119. Keith Rollin for help, enormous patience and just being a damn good guy. Chris Flick for example
  120. code and guidance. Rick at MacWEEK for giving me one of his PowerBooks so I could program overnight
  121. (I'm getting my own soon, thank goodness). CalTrain for a reasonably comfortable programming
  122. environment. "Next stop, Hillsdale. And we'd like to announce Robert finally squashed that nasty
  123. memory bug!" Annie Lennox, Ministry, The Pet Shop Boys and NIN for keeping my spirits up while I
  124. dropped into MacsBug with a bus error.
  125.  
  126. And Thanks to YOU for helping. Thanks for having a sense of humor. Thanks for putting up with very
  127. late night programming...(I have a full time job...amazing...)
  128.  
  129. Robert Hess MacWEEK Systems Administrator 301 Howard, 15th Floor San Francisco, CA 94105 Internet:
  130. robert_hess@macweek.ziff.com AppleLink: MACWEEK QM-QM: (415) 243-3623 CIS: 72511,333 MCI: RHESS AOL:
  131. RHessJr
  132.  
  133.  ADDITIONS SINCE VERSION 1.0.0:
  134.  
  135. Version 1.1.0 ============= PostScript files (aka "downloadable fonts") are now hidden by default.
  136. There's an icon of an arrow pointing into a LaserWriter which starts with an "X" through it,
  137. indicating PostScript files are NOT being shown. Click on the icon to toggle it; the "X" will
  138. disappear and PostScript files will be shown. Basically, this feature is for future growth. Right
  139. now, it really doesn't matter if you leave PostScript files in the 'Fonts' folder; the Mac will only
  140. use them when necessary. I guess you could move PostScript files out of the 'Fonts' folder (and into
  141. the '•Disabled Fonts' folder) if you wished. In the future, however, you will be able to mount
  142. remote volumes (such as AppleShare-based 'font server' volumes) and copy fonts onto your Mac. In
  143. that case, it would be necessary to move PostScript files aong with their bitmap files, so you'll
  144. need to have a way to see what PostScript files are already present in your 'Fonts' folder.
  145.  
  146. You can now hold down the Space Bar _OR_ the "F" (for "Font") key to call up SFM. Some people
  147. complained they already have a bizillion extensions using the Space Bar; since I have been rebooting
  148. like mad lately (testing you-know-what), I know how irritating the Space Bar can be ("I want SFM,
  149. not Extensions Manager!"), so I added this feature.
  150.  
  151. Memory is better managed than before. You'll just have to trust me.
  152.  
  153. If you were getting an AutoDoubler dialog box in the Finder before, I apologize. Thanks to some
  154. sloppy disk management on my part, a product I was beta testing modified SFM. Bad Robert, bad.
  155.  
  156. Notifications now work. If you try to use SFM with anything prior to System 7.1 you will be informed
  157. that SFM doesn't work with your Mac (and why not) in a dialog box when you get to the Finder. This
  158. uses the Notification Manager, as recommended by Apple. The same method is used for other weird
  159. errors (the only other one right now is if you're running System 7.1 but the OS is unable to find
  160. your 'Fonts' folder; that's highly unlikely since I make one call to the OS, which will look like
  161. mad for the folder, but I put the error handling in just in case).
  162.  
  163. The sounds are gone. I hate to see Ren go but he was eating up 17K.
  164.  
  165. What's next? The aliasing feature. Like I mentioned above, the code for it is already there (I've
  166. disabled it until I'm comfortable with it). I've been badgered like MAD for a Control Panel version
  167. of SFM. That's on hold for now; first I want to get the _functionality_ frozen, then we'll turn SFM
  168. into an INIT/cdev combo like Extensions Manager (actually, I might just make it one Control Panel
  169. file and make the user responsible for placing SFM in the Extensions folder if they want it to load
  170. really early in the boot cycle…leaving it in the Control Panels folder wouldn't do any harm).
  171. Another feature people want is "sets"…that's on the list, too.
  172.  
  173. I'm naming the extension "Startup Font Manager" now instead of "  SFM x.x.x". That way, you can
  174. always drop it into your System Folder and replace the old version with the new. If you want SFM to
  175. load really early in the boot cycle, rename it with spaces in front of the name.
  176.